<?php 
/* SVN FILE: $Id$ */
/* AreaRegion Test cases generated on: 2009-05-31 00:05:09 : 1243745889*/
App::import('Model', 'AreaRegion');

class AreaRegionTestCase extends CakeTestCase {
	var $AreaRegion = null;
	var $fixtures = array('app.area_region', 'app.shipping_area', 'app.region');

	function startTest() {
		$this->AreaRegion =& ClassRegistry::init('AreaRegion');
	}

	function testAreaRegionInstance() {
		$this->assertTrue(is_a($this->AreaRegion, 'AreaRegion'));
	}

	function testAreaRegionFind() {
		$this->AreaRegion->recursive = -1;
		$results = $this->AreaRegion->find('first');
		$this->assertTrue(!empty($results));

		$expected = array('AreaRegion' => array(
			'id'  => 1,
			'shipping_area_id'  => 1,
			'region_id'  => 1
		));
		$this->assertEqual($results, $expected);
	}
}
?>